CXX = arm-linux-g++
LDFLAGS = -ljpeg
LIB = -L ./jpeg-9d/bing/lib/
INCLUDE = -I ./JPG/ -I ./BMP/ -I ./LCD/ -I ./TOUCH/ -I ./jpeg-9d/bing/include/
DEP = main.cpp
JPG = JPG/jpg.cpp
BMP = BMP/bmp.cpp
LCD = LCD/lcd.cpp
TOUCH = TOUCH/touch.cpp
puzzle:$(DEP) $(JPG) $(BMP) $(LCD) $(TOUCH)
	$(CXX) $^ -o $@ $(INCLUDE) $(LIB) $(LDFLAGS)

jpgxs:$(DEP) $(JPG) $(LCD)
	$(CXX) $^ -o $@ $(INCLUDE) $(LIB) $(LDFLAGS)

bmpxs:$(DEP) $(BMP) $(LCD)
	$(CXX) $^ -o $@ $(INCLUDE) $(LIB) $(LDFLAGS)

dtzz:$(DEP) $(JPG) $(LCD)
	$(CXX) $^ -o $@ $(INCLUDE) $(LIB) $(LDFLAGS)
clean:
	$(RM) puzzle jpgxs bmpxs dtzz
